#pragma once

#include <exception>
#include <string>

namespace easylog
{
    struct except : std::exception
    {
        except(const std::string& s)
            : _s(s)
        {}

        virtual const char* what() const throw()
        {
            return _s.c_str();
        }

    private:
        std::string _s;
    };
}
